* @Short_description: Manipulating stock icons
* @Title: Themeable Stock Images
*
- * Browse the available stock icons using
- * the “gtk3-demo” application.
- *
* An icon factory manages a collection of #GtkIconSet; a #GtkIconSet manages a
* set of variants of a particular icon (i.e. a #GtkIconSet contains variants for
* different sizes and widget states). Icons in an icon factory are named by a
#include <pango/pango.h>
#include <math.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
struct _GtkNumerableIconPrivate {
gint count;
gint icon_size;
* Returns: the currently displayed label
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
const gchar *
gtk_numerable_icon_get_label (GtkNumerableIcon *self)
* has always priority.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
void
gtk_numerable_icon_set_label (GtkNumerableIcon *self,
* Returns: the currently displayed value
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
gint
gtk_numerable_icon_get_count (GtkNumerableIcon *self)
* and gtk_numerable_icon_set_label() has always priority.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
void
gtk_numerable_icon_set_count (GtkNumerableIcon *self,
* Use g_object_ref() if you want to keep it around
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
GtkStyleContext *
gtk_numerable_icon_get_style_context (GtkNumerableIcon *self)
* given #GtkStyleContext.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
void
gtk_numerable_icon_set_style_context (GtkNumerableIcon *self,
* gtk_numerable_icon_set_background_icon_name() has always priority.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
void
gtk_numerable_icon_set_background_gicon (GtkNumerableIcon *self,
* Returns: (transfer none): a #GIcon, or %NULL
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
GIcon *
gtk_numerable_icon_get_background_gicon (GtkNumerableIcon *self)
* and gtk_numerable_icon_set_background_gicon() has always priority.
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
void
gtk_numerable_icon_set_background_icon_name (GtkNumerableIcon *self,
* Returns: an icon name, or %NULL
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
const gchar *
gtk_numerable_icon_get_background_icon_name (GtkNumerableIcon *self)
* Returns: (transfer full): a new #GIcon
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
GIcon *
gtk_numerable_icon_new (GIcon *base_icon)
* Returns: (transfer full): a new #GIcon
*
* Since: 3.0
+ *
+ * Deprecated: 3.14
*/
GIcon *
gtk_numerable_icon_new_with_style_context (GIcon *base_icon,
#include "gtkbuiltincache.h"
#include "gtkintl.h"
#include "gtkmain.h"
-#include "gtknumerableiconprivate.h"
+#include "deprecated/gtknumerableiconprivate.h"
#include "gtksettings.h"
#include "gtkprivate.h"
GList *list, *l;
GtkIconInfo *base_info, *emblem_info;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (GTK_IS_NUMERABLE_ICON (icon))
_gtk_numerable_icon_set_background_icon_size (GTK_NUMERABLE_ICON (icon), size / 2);
+G_GNUC_END_IGNORE_DEPRECATIONS
base = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon));
base_info = gtk_icon_theme_lookup_by_gicon_for_scale (icon_theme, base, size, scale, flags);